add event formatting