add missing variable

N is used as variable here