replaced necessary matching tabs