add write and read's scope