refactor scale x and y to only scale