add @transient to prev in ZippedWithIndexRDD