create parameters from passed objects correctly