modified SparkApp