format events