comments about weighting algorithm