change main.c add output to tabtex