update top sale function