modify sys_task function