moved c_code