change type of {x, y} to {X|Y...} as per #491