pass index path instead of just an int.