some changes to Tex template