corrected prev/next