reconstruct code, step 1