var priceDetails declared and assigned