extend indexing to cover attribute type