check intergrity