refactor to drop a task