use _.contains in _.uniq instead of indexOf