removed trailing commas from records