changing array() to []