added inheritance again