copy from trafficmat4