replaced objectAtIndex:0 with lastObject