convert lines to list