setCanWrite