ensure put is used with indexing