method to remove doubles from results and another method to scale sum of topics to 100