ops.. i figured it out. I actually had another variable name int time which was causing the problem. Thanx ..