Changed nextln to next