support for threshold=None