added variable weighting for index weighting