updating initialization code