refactoring lecture delete