reform code structure.