changed all events= to events()