tweaking ranking formula