Some code reformat in evaluate_pieces