brackets to array