modify the init file function