X and Y working correctly