updated VALIDPNTR definition