implemented reflection to predictor conversion