added c-mode