working version of F_C.c