re-construct the codes
re-construct codes