checking in the cantor set