delete useless index