changes to structure to code