added function to fill in the N's