arrays doing something, but all numbers are negative