Change the structure of the codes