add some c code