modify the structure of codes