set proper relative tolerance value and maximum iteration number.