changed nestForAlloc. Adds one pointer less.