added updating of stats