optimize engine structure.