demo the ungetch function