remove trailing comma.