having out of bounds exception problems