made a nextline implementation