added x and y output