added check integrity