optimized set_price method