hoisting code snippet