changed REG_SIZE to 24