start to minify inside functions, using global data from previous pass