clean up collins perceptron a bit