simplified the demo