next attempt at fixing the parameter setup proceedure