You need to post the full code for that to help you.