modified function signature of listCalendarItem