making querying parallel