extract method, added test, refactoring