check the array output