added coherence filtering