start of txt analysis