remove extra close bracket