removed unnecessary code from C files