tabwrite~ with index