reconstruct code struct