more attempt at a generic query