first working version of synapse plasticity