code reconstruct