making module from initialization code