add query methods.