more minireg code