update task index