fixed the parent problem