refactorings. methods to params