work on fixing errors in tree rework