function to scale x,y independitly