defence for ak and kp against overwriting in regeneration script