update code sturct