priceChange function added