linked up schedule and corrected problems in getSchedule