refactoring the neurons