think i fixed the 2-d array, need to check