finish function of backlog and tasks