Can you show us your code formated as it is described below so we will be able to help you solve it?
Andrei