changes in algorithm of prices. Better adjustment