added addWrite()