creating predictor