done with isNextStar. Not done with unittesting.