parameters second refactoring