refactor number helper

refactor number helper