add ref. & isUnique_brute