remove unused isDispatched function