for spark and scala