uses event object to generate event yo