changed tree implamention