reconstruct codes