modify afn/index