replace  [] instead of array