best_in_place improvement