removed thread f/ perceptron/added rfirst to beam