rewriting events works