started work on C code