add class decl and func decl