improve code for ppu reg 2007 rw.