fixed some more out of bounds errors I was getting