adding autogen code