refactoring on slides