check the inserted sum