minor bug with array counting