declared variable outside of function