get rid of extra iteration of tabs.