get parent and ancestors methods