modify the init code