add update-task method