added calendar parser code