added clear demo code