minor edit to scaling var, moved to animate