modfiy the code struct