Replace int by Index