first version predictor, without database operation