add pletter and pnumber function