updating a task