added more dynamic rescheduling algorithm for update loop