modified referencemapping and filterby for VariationRDDFunctions