changed the algorithm for calculating scales