removed old C code