debugging array values; not as expected