refactor task active