fixed extra commas and newline