change order of updateStats