add event definition