ccode auto-generation functionality added