form key code reorganization