scaling loop