convert array() to []