some new code for variable scope