add read & write function
add read & write function