updated printing; need to pass event object