manipulate params for query api