change the type of query