npv routines added