revert back to original index code