update price method