finish perceptron