pass in the correct event object