remove [] and replace with array call