tested with non-uniform weights but does not seem useful on harder problems