solidify hoisting logic.