clean up event transformation