modifying index