modified _.uniq to use _.indexOf