began code for fixing p in untrapped mos