main tex fixes done