@hbaysal
What is the purpose of the code you posted?
You have not explained why you have coded it the way that you have.

Spoonfeeding answers to OPs is discouraged.


Whoops, missed the...