updating the get methods to work with query expressions