changed to an index