set variable before adding to params list