rename scale() helper to avoid conflicts