change error term usage to optval