clean up request index code