if mid is not None (you allow eg mid=0)