ashnur, have you used a debugger? it's kinda hard to tell you what the issue is