fixed some stuff in tex file