remove task state