improvement to N_int