modified API chop programs and coherence main program