trying to fix best_in_place