refactoring of methods parameters