changed predictor to Predictor