fold in spark added