weights are now scaled correctly with max-value/max-min