adding missing predictor code