update
check for min and max iteration max iteration
removed obsolete line