Restructuring the codes