add some C code