check for err in the member field