loop for scaling func