modified c-mode