changes to task_tick