add threshold on ranking