refactor task complete