dfm weighting function