better formatting of events