re-factor RPrediction in order to allow more built-in features