added save to history
good version