update optional for coverity scan