implement a decent trending logic