perform fewer queries