write a demo to help debug