took out debug info
fixed get distinct data bug for advanced search