changes for n argument