changed to distributed delays and weights