replay state variable added and replaying actions added typos fixed