array indicies should be ints