queryResults method added