translation and bug fix for tree