fixed search uniq. needs to be an array before calling it