add cleverTab() function, have to be tested by time..