Revert "hoisted functions"

This reverts commit a9d696b940461decadb9a461fd10fbf83c052050.