added opt_reg
Merge branch 'master' of https://github.com/hamko/sample