remove code duplication from WeightedCell class
increase weight-arithmetic stability