neuron building refactorization