checking integrity