modified index a little