added nitems to separate needed from prior