preparing data for risk-based model