add correct isUniq() function