make sure reference isn't serializing rdd