task finished, delete method refactored