set up coherence code