make the buffer read only