function getDataForCalendar added