id integrity check