Changed array defination

was using '[' now using array(