change [] to array