added predispatch