parameterise getRank function by aux tag