NPCER: need advice on coding/programming question