don't refer global opt_4 in library functions.