with some help from the len library, unpack the forest