fixed error in code regarding leapyears