reconstruct some codes