change scaling to be done by normal function instead of lambda