Modified for Array index