added tree modes