makeParameres refactored by exteracting a new function