change to binary perceptron