changed register and swl
changed register and swl