capitialze N in nearest