trying to implement scaling.