check x and y as integers