tabs and comments functions