work more on tab insertion