updating best_in_place