class support destruct and autogen support function's comment