demo the clear function