It's a bad idea to declare variables inside a block

One more, it's a bad idea to declare variables inside a block.