updated to new array syntax