ranking is done