swapped string for array var