changes to code struct