build unreg to test reg, error handling