fixing mos errors