adds index to annoitations

This is useful for recovering order information downstream.