find nests from innermost to outermost rather than the oth
er way round