minor fix to hoisting and review
add to hoisting