everything seems to be working fine, TODO fix the update method of Scheduler