By using two modified Ricci tensors, we prove some theorems which correspond to Myers's diameter estimate theorem and Bochner's vanishing theorem.