if you want to pass these variables to the event, you should also copy them back after the event.