updated to reflect max N of 40000