work on tab insertion