detab using for_each