return a writeresult