modified index a bit