switch x and y if both numeric