new ns handling alg