added scaling feature