creating event working