updating tex file