if not isinstance(xi, tuple):
            xi = (xi,)