adding logic to schedule portions of a task