modify the traffic functions