removed index function