added a function to set read/write/modify at once