added make_tabs function