changed to `isinstance(res, (list, tuple, ))`