removed deprecated C code