minor updates to result code