changed speed to scale x and y to under max value