set n in settings