added iterations to grasp main.