have not yet found the stupid index out of bounds exception