added tol to opts