basic function hoisting