solve the transit type problem