fixing the available regs stuff