handle empty lines