adapt name and minify value