remove some unnecessary trailing commas