integrity check improved