another attempt at tab replace