added npmi()