added hook to c-mode