updating to new array syntax