restoring data structure, Code optimization.