integrity verification functionality