refactoring rest number one