updated snippet count
change snippet scope