check if only one swap