making sure that the input array is working