refactor
mjreg