added tweeviews snippet function