setting id on index