uniquify and search