index write