refactoring attributes