remove withnegweights requirement