refactoring each_parametrs function