minor changes to c mode