[code_prettify] change function scope