max # of iterations set to 10