rewise code
on delete score history revert the score