proper handling of TABs