adding parameters to the query