removed length checking in EventDispatcher
cleaned up white space
cleaned