fixed isse with inheritance