implemented scaling through transform