Refactoring. function parametrs translate.