read and write operation mode