added double tab detector