methods for getting all ancestors/descendants