added total_results to query