add argument "$n" to &code