added average perceptron model enhancement