added a function to update a list with details for ranking