cleaned up tex