retrieving ranked topics