neuron update function done