OK, now do that again, but this time put it in the code formatter as I stipulated before (if you can't figure that out, then copy your code [i.e. put it in the clipboard], then click "Reply", then click on the little icon that is second from the right in the row of icons that appears above the box where you write your reply [kind of looks like a little man with a speech bubble]. That will make the [code][/code] tags appear. Paste your code there. The cursor will be in the correct position right after you click the icon).
If you want us to spend our precious time on this problem, then the least you can do is give us something easy to look at!
And also, please refrain from saying things like "the code runs well". You know what that means, because you know what you expect -- *we don't*. Do us the courtesy of opening your perspective to include us, the ones you are asking help from -- otherwise we don't know what the heck you're talking about, and most of the conversation will entail us asking you to elaborate -- assuming we have the patience to go that far.