slightly better track-truck code