working on the interface for querying