making weighting optional