add write-method