removed unused functions
calculate price on backend