event formatting