is.leap function runs perfectly