Due to poor performance on a midterm for an advanced major class I am currently taking, I am expecting to earn a lower grade than I would like to (around a B/B-). I have earned A's in all my other major classes and I am concerned about how this will affect graduate admissions.
Alongside other options such as research for bolstering my future graduate school applications (I am currently a sophomore), I am wondering if retaking the class in the future would look better for graduate admissions. I believe that I would be able to earn a better grade if I retook the class, but I am wondering whether this would be a good use of my time and if it would (at least partially) make up for poor performance in this class, or if I would be better off focusing on other areas, such as getting in more research opportunities. I also have the opportunity to take the graduate version of this course, which I would also consider if this would help my chances for admission into a good graduate program.