improved index checker