replace next with n