had abs_tol and rel_tol mixed up