array output debugged