stat calculation on item change