tree check