Please surround your code snippets with CODE goes here. It makes reading the code much easier.