added last tree problem