code reconstruction