only output object when no errors