added quadratic weights analysis