some changes from a while back
prob 43 + bug in getIntfromArr