refactoring: extract code to methods