remove deprecated event dispatch