crashes when you put i in for 0 for objectAtIndex