mod method for detection of synapses