got ahold of query, so we can store in in the prov