renaming query method.