fixed tree checker again