fixed the parent problem
working on not in heap problem