move indices to the IFS code