pass event object as pointer