cleaned up tex template