nlist,npool code fix