changed Model to set statistics