added getAllReg