slightly re-worked circ query - will update more to fit with cstore