add inheritance inference