nextL and curL added