remove trailing comma at end of parameters