deleted most of event.py