make retrival of lines work