changed standard value for mxiter to 10000