cleaned the extra comma at the end of each line