fix bug - N on large numbers