please save a reference to entries[i]