Integrity check code refine