implemented array index