add index to for