obj is the index