add event to dependencies