index exceeds range

index exceeds array range