changed [] to array()