array is working