unlines instead of intercalate "\n"