eliminate get_struct_field and init_struct_field