modify autogen: multiple inheritance step 1