ugly threshold of endpoints