use new alogrithm similar as Hacker news