minor changes to fix query not displaying results