Spark code change for 3 fingers