fixed missing functions in rdd