How does the ambiguity check work