added correct delete of events