fixed bug that was setting params to a constant value