delete unexpected comma at end