update code for REG-7