remove unnecessary code

clear_tab is no longer needed