refactored best_price method