removed index code