[] operator for writing