How to use the eventObject