finished EventUtil function