refactoring to list all users