output ends with new line