refactor use new function in bootstrap helper