lines parsing in place