update history and change erasion to deletion