added weighting stuff