added some query methods