simplify stack_clear()