try rightmostindex