refactoring users