refactoring the creation of function arguments (before mapping params)