remove extra trailing comma