optimize the TopSearch