history saving update