additional changes to kc.c