working on getParentTag