added auto increment for npid