deleted index code