refactor using incomplete_tasks method