check durity of fold and unfold