use 'n' instead of 'N' since it's not constant