a few tree problems