fixing inheritance