add event code format