refactor the register
Merge branch 'master' of https://github.com/khoaht/BDW