added x and y axis translation