working on getparent