update examples with buffer type