updated check for vehicle type, issues with type char(10)