made it possible to add events