added done function to tasks