resolve variable hoisting