swapped to weighted average