refactoring, finalizing destroy method