getting data for stats models