updating ranking