add getter on index