refactor TaskHelper