Added a method to scale the x compenent