update code in Memento