update new c code