publication numbers algorithm improvement