allow for query to be custom