fix misplaces next()