change the coordinates according to spec.