ADE using spark