printyields now works with trees