refactoring deck