fix bugs, take top 5 results