rewrite event buffer