typo error nest for next, fixed