removed old code & implemented schedule.