fixing inheritance logic