removing duplicates on search