implemented most of qbets predictor