getting SW register to work