added newtypes for indexing