added some math to weighted prices