and when the task is completed