updates on the algorithm of pricing