initial implementation of range scaling calculation