change params to query