added check fot tree group