returning arrays instead of objects for schedule