add index
removed function no longer used