added x and y axis functions