added proper index getter