remove extraneous trailing comma