fixed the surrounding tree problem