change from [] notation to array()