modified schedule.java