preparation for replay