reconstruct the code