change create_index to ensure_index