You need to comply with Forum Rule No. 3. Posting code without them makes your code hard to read and difficult to be copied for testing. For more information about these and other tags.