removed the use of GregorianCalendar