make loc local variable
Merge pull request #2 from andyhot/patch-1

make loc local variable