add a function to average synapses to avoid multiple entries per synapse