update restruct code base