made tabs a global variable for #9