updating trending scan calculation