changed invalid-coordinate-p to valid-coordinate-p