adding safe minification