changed regression to plotting