working on isRankConsistent()