change the structure of code