switching to new array method