modified codes struct