fixed the inhirrteance issue