added automatic retab