fixes two warnings about shadowing local variables
Merge pull request #1 from foozmeat/shadow-variables

fixes two warnings about shadowing local variables