set up g_k_C solving