i found some syntax error in the upper part of my code.
thanks for the reply..