all but last 3 array problems solved