removed rest_in_place, added best_in_place