updating tex file to work with new latex