ring sample add and minify update