change the code struct