condensed greatest depth nodes problem into one directory