Change scaling logic